﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Robot.SearchNearest
{
    class ListBoxLogger : Logger
    {
        private ListBox logBox;
        public ListBoxLogger(ListBox logBox)
        {
            this.logBox = logBox;
        }

        public override void Log(string message)
        {
            logBox.Items.Add(message);
            logBox.Refresh();
        }
    }
}
